home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ für Kids
/
C++ for kids.iso
/
Buch
/
Hallo4a.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1998-12-15
|
1KB
|
38 lines
//---------------------------------------------------------------------------
#include <vcl\vcl.h>
#pragma hdrstop
#include "Hallo4a.h"
//---------------------------------------------------------------------------
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::ListBox1Click(TObject *Sender)
{
switch (ListBox1->ItemIndex)
{
case 0:
Application->MessageBox ("Das ist ja toll!", "", 4+48);
break;
case 1:
Application->MessageBox ("Das freut mich!", "", 4+48);
break;
case 2:
Application->MessageBox ("Das geht ja noch!", "", 4+32);
break;
case 3:
Application->MessageBox ("Das tut mir leid!", "", 4+48);
break;
case 4:
Application->MessageBox ("Das ist ja schlimm!", "", 4+48);
break;
case 5:
Application->MessageBox ("Wenn du meinst...", "", 1+16);
}
}
//---------------------------------------------------------------------------